<?php
session_start();
header("Content-type: text/html; charset=utf-8"); 
$data = $_GET['data'] ; 
$data = json_decode(preg_replace('/\\\\\"/',"\"", $data),true) ; 
$_SESSION['openid'] = $data['openid'];
$_SESSION['nickname'] = $data['nickname'];
$_SESSION['headimgurl'] = $data['headimgurl']; 
?>
<script language="javascript">
location.href = 'index.php';
</script>